package com.gayworld.model.noentity;
 

public enum Icon {
	BATH_HOUSE(1, "bathhouse", "../static/images/sauna.png"),	
	CRUISING(2, "cruising", "../static/images/cruising.png"), 
	GAY_BEACH(3, "gaybeach", "../static/images/beach.png"),
	CLUB(4, "club", "../static/images/club.png"),
	BAR_BEFORE(5, "barbefore", "../static/images/bar.png"),
	SEX_CLUB(6, "sexclub", "../static/images/sex_club.png"),
	HOTEL_RESORT(7, "hotelresort", "../static/images/hotel.png"),
	LESBIAN_BAR(8, "lesbianbar", "../static/images/lesbian.png"),
	CINEMA(9, "cinema", "../static/images/cinema.png"),
	TRAVEL_AGENCIES(10, "travelagencies", "../static/images/travel_agency.png"),
	SEX_SHOP(11, "sexshop", "../static/images/sexshop.png"),
	GIM(12, "gim", "../static/images/gim.png"),
	RESTAURANT(13, "restaurant", "../static/images/restaurant.png"),
	SHOPPING(14, "shopping", "../static/images/shopping.png");
	 
	private Integer id;
	private String name;
	private String imgPath;
	
	private Icon(Integer id, String name, String imgPath) {
		this.id = id;
		this.name = name;
		this.imgPath = imgPath;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the drawableID
	 */
	public String getImgPath() {
		return imgPath;
	}
	
	public static Icon getIconFromId(int id){
		Icon value = null;
		switch (id) {
		case 1:
			value = BATH_HOUSE;
			break;
		case 2:
			value = CRUISING;
			break;
		case 3:
			value = GAY_BEACH;
			break;
		case 4:
			value = CLUB;
			break;
		case 5:
			value = BAR_BEFORE;
			break;
			
		case 6:
			value = SEX_CLUB;
			break;
		case 7:
			value = HOTEL_RESORT;
			break;
		case 8:
			value = LESBIAN_BAR;
			break;
		case 9:
			value = CINEMA;
			break;
		case 10:
			value = TRAVEL_AGENCIES;
			break;
		case 11:
			value = SEX_SHOP;
			break;
		case 12:
			value = GIM;
			break;
		case 13:
			value = RESTAURANT;
			break;
		case 14:
			value = SHOPPING;
			break;
		default:
			value = CRUISING;
			break;
		}
				
		return value;
	}
}
